@nadeshikon/plugin-nextjs
Version:
Run Next.js seamlessly on Netlify
18 lines (15 loc) • 427 B
JavaScript
// force-static should override the `headers()` usage
// in parent layout
export const dynamic = 'force-static'
export function generateStaticParams() {
return [{ slug: 'first' }, { slug: 'second' }]
}
export default function Page({ params }) {
return (
<>
<p id="page">/force-static/[slug]</p>
<p id="params">{JSON.stringify(params)}</p>
<p id="now">{Date.now()}</p>
</>
)
}